#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void my_strpcy(int *arr1 ,int *arr2)
{
	int i = 0;
	while (i<=5)
	{
		i++;
		int tmp;
		tmp = *arr1;
		*arr1 = *arr2;
		*arr2 = tmp;
		arr1++;
		arr2++;
	}
	
}
int main()
{
	int arr1[5] = { 1,2,3,4,5 };
	int arr2[5] = { 5,4,3,2,1 };
	my_strpcy(arr1,arr2);
	int i = 1;
	for (i = 0; i < 5; i++)
	{
		printf("%d ", arr1[i]);

	}
	printf("\n");
	for (i = 0; i < 5; i++)
	{
		printf("%d ", arr2[i]);

	}

	return 0;
}